<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../common.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="${staticPath}/js/app/buyer/salesreturn.js"></script>
<script type="text/javascript" src="${staticPath}/js/webuploader/webuploader.js"></script>
<link type="text/css" rel="stylesheet" href="${staticPath}/js/webuploader/webuploader.css" />
<link type="text/css" rel="stylesheet" href="${staticPath}/js/webuploader/style.css" />
<script type="text/javascript" src="${staticPath}/js/app/buyer/uploader.js"></script>
<title>申请退款</title>
</head>
<body ontouchstart>
	<header class="contHeader">
		<div class="contOHeader">
			<h1>申请退款</h1>
			<div class="contOHeadBack">
				<a href="javascript:history.go(-1);">
					<img src="${staticPath}/images/back2.png">
				</a>
			</div>
		</div>
	</header>
	<div class="weui_cells weui_cells_form">
		<div class="weui_cell weui_cell_select">
			<div class="weui_cell_bd weui_cell_primary">
				<select class="weui_select" name="type" id="type">
					<option selected="" value="0">请选择申请的服务</option>
					<option value="1">退款退货</option>
					<option value="2">仅退款</option>
				</select>
			</div>
		</div>
		<div class="weui_cell weui_cell_select">
			<div class="weui_cell_bd weui_cell_primary">
				<select class="weui_select" name="reason" id="reason">
					<option selected="" value="0">退款退货原因：</option>
					<option value="1">七天无理由退换货</option>
					<option value="2">退运费</option>
					<option value="3">收到商品破损</option>
					<option value="4">商品错发/漏发</option>
					<option value="5">商品需要维修</option>
					<option value="6">收到商品与描述不符</option>
					<option value="7">商品质量问题</option>
					<option value="8">和商家协商一致</option>
					<option value="9">未按约定时间发货</option>
					<option value="10">收到假货</option>
					<option value="11">其他</option>
				</select>
			</div>
		</div>
		<input type="hidden" id="goodsOrderIds" name="goodsOrderIds" value="${goodsOrderIds }"/>
		<input type="hidden" id="price" name="price" value="${price }"/>
		<c:if test="${price > 0 }">
			<div class="weui_cell">
				<div class="weui_cell_hd">
					<label class="weui_label" style="width: 120px;">退款金额：</label>
					<p style="font-size: 14px;">本次最高<span id="amount"><fmt:formatNumber value="${price/100}" pattern="#,###.##" /></span>元</p>
				</div>
				<div class="weui_cell_bd weui_cell_primary">
					<input id="applyAmount" name="applyAmount" class="weui_input" type="text" placeholder="请输入退款金额">
				</div>
			</div>
		</c:if>
		<div class="weui_cells_title" style="font-size: 18px; color: #000;">退款退货说明：</div>
		<div class="weui_cells weui_cells_form">
			<div class="weui_cell">
				<div class="weui_cell_bd weui_cell_primary">
					<textarea id="remark" name="remark" class="weui_textarea" placeholder="请输入退款退货说明" rows="3"></textarea>
					<div class="weui_textarea_counter">
						<span id="count">0</span>
						/100
					</div>
				</div>
			</div>
		</div>
		<div class="weui_cell">
			<div class="weui_cell_bd weui_cell_primary">
				<div class="weui_uploader">
					<div class="weui_uploader_hd weui_cell">
						<div class="weui_cell_bd weui_cell_primary">上传凭证：最多5张</div>
					</div>
					<div class="weui_uploader_bd">
						<ul id="imgul" class="weui_uploader_files"></ul>
						<div class="weui_uploader_input_wrp">
							<button id="filebtn" class="weui_uploader_input" onclick="selectfile()"></button>
							<input type="hidden" id="imageUrl" name="imageUrl"/>
						</div>
					</div>
					<div id="photo">
						<div id="picker">选择文件</div>
						<div id="fileList" class="uploader-list"></div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="weui_btn_area">
		<a class="weui_btn weui_btn_primary" href="javascript:save()" id="showTooltips">提交申请</a>
	</div>
</body>
</html>

